#!/bin/bash
if [ $# != 1 ] ; then
echo "USAGE: $0 imagename"
echo " e.g.: $0 client.img"
exit 1;
fi

imagename=$1
destdir="/dev/jli351"

sudo mkdir -p ${destdir}
sudo chown -R jli351:stud ${destdir}
scp jli351@techwaystorage.cc.gatech.edu:/export/power-vms/propersizeimage/${imagename} ${destdir}
sudo chown -R jli351:stud ${destdir}/${imagename}
